<h2>Guru &raquo; Edit Data - Tahun Ajaran <?echo $school_year . $semester?></h2>
<?php if (count($teacher) == 0) : ?>
	<p>Invalid teacher's ID</p>
<?php else : ?>
<?php echo form_open("admin/teachers/edit/$id") ?>
	<?php echo form_hidden('school_year_id',$school_year_id) ?>
	<?php echo form_hidden('id', $id) ?>
	<?php echo form_hidden('user_id', $teacher['user_id']) ?>
	<ul class="prerequisites">
		<li>Semua field harus diisi.</li>
		<li>Kosongkan field 'Password' bila tidak ingin mengubah.</li>
	</ul>
	<ul class="fields">
		<?php $this->load->view('admin/teachers/_form') ?>
		<fieldset>
			<legend>Data Login</legend>
			<?php echo my_form_password(array('name'=>'password', 'label'=>'Password :', 'default'=>'', 'properties'=>'id="password" size="20" class="form_field"')) ?>
			<?php echo my_form_password(array('name'=>'repeat_password', 'label'=>'Ulangi Password :', 'default'=>'', 'properties'=>'id="repeat_password" size="20" class="form_field"')) ?>
		</fieldset>
		<li>
			<div class="actions">
				<?php echo form_submit('update', 'Simpan', 'id="submit"') ?>
				&nbsp;&nbsp;&nbsp;
				<?php echo form_reset('reset', 'Reset', 'id="reset"') ?>
			</div>
		</li>
	</ul>
<?php echo form_close() ?>
<?php endif ?>
